package labb3.FileHandling;

import labb3.Media;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Interface so realizing classes can load Media from a file.
 *
 * @author Mikko Puustinen
 * @version 0.5, 2007-okt-18
 */
public interface CollectionLoader {

    /**
     * Load Media and return an ArrayList containing it.
     *
     * @return the loaded MediaCollection.
     *
     * @throws IOException            if error occurs while reading the file.
     * @throws ClassNotFoundException Not implemented.
     */
    public ArrayList<Media> loadCollection() throws IOException, ClassNotFoundException;
}
